<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<dsp:page>	
<dsp:importbean bean="/atg/dynamo/droplet/ForEach" />
<dsp:importbean bean="/atg/commerce/pricing/PriceItem" />
<dsp:importbean bean="/atg/commerce/pricing/PriceEachItem" />
<dsp:importbean bean="/atg/commerce/order/ShoppingCartModifier" />

		
		<p class="title"><h2>Related Products</h2></p>
				<dsp:droplet name="ForEach">	
					<dsp:param name="array" param="product.fixedRelatedProducts" />
					<dsp:param name="elementName" value="RProduct" />
					<dsp:oparam name="output">																
									<div class="box">
										<div class="img">
											<dsp:a href="productDetail.jsp">
												<dsp:param name="pId" param="RProduct.id" />
												<dsp:getvalueof var="imgUrl"
													param="RProduct.thumbnailImage.url" />
												<img src="${fn:replace(imgUrl,'../','')}" />
											</dsp:a>
										</div>
										<div class="info">
											<p class="name">
												<dsp:a href="productDetail.jsp">
													<dsp:param name="pId" param="RProduct.id" />
													<dsp:valueof param="RProduct.displayName" />
												</dsp:a>
												<dsp:getvalueof var="rates" param="product.reviewStars"/>
												<c:forEach var="rate" begin="0" end="${rates-1}">
													<c:out value="*" />
												</c:forEach>					
											</p>
										</div>
					</dsp:oparam>
				</dsp:droplet>
</dsp:page>